import { REQUEST_BEGIN, REQUEST_END } from '../action/actionCommon';
export function requestStatus (state = {}, action) {
    switch (action.type) {
    case REQUEST_BEGIN:
        return Object.assign({}, state, {
            status: action.status,
        });
    case REQUEST_END:
        return Object.assign({}, state, {
            status: action.status,
        });
    default:
        return state;
    }
}
